package com.fwh.web.eneity;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 发起人
 * </p>
 *
 * @author fwh
 * @since 2019-04-11
 */
@Data
@TableName("tb_interface_record")
public class TbInterfaceRecord extends Model<TbInterfaceRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 接口类型
     */
    private String interfaceType;
    /**
     * 接口名
     */
    private String interfaceName;
    /**
     * 接口编码:
     * QUERY_FLIGHT(1000, "查询航班"),
     * CHECK_PRICE(1001, "验舱验价"),
     * TICKETS_RULES(1002, "获取票规"),
     * GENERAL_ORDER(1003, "预订生成编码"),
     * PAY(1004, "支付"),
     * TICKETING(1005, "出票"),
     * REFUND(1006, "退票"),
     * DEVIL(1007, "废票"),
     * MODIFYDATE(1008, "改期"),
     * BACK_TICKET(1009,"回填票号");
     */
    private Integer interfaceCode;
    /**
     * 参数信息
     */
    private String argInfo;
    /**
     * 开始时间
     */
    private Date beginTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 响应耗时(毫秒)
     */
    private Long responseTime;
    /**
     * 成功/失败 1/0
     */
    private Boolean isSuccess;
    /**
     * 失败信息
     */
    private String failMsg;
    /**
     * 发起人
     */
    private String initiator;
    /**
     * 创建时间
     */
    private Date createDate;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
